﻿<controls:MovableWindow
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:iTuner"
  xmlns:controls="clr-namespace:iTuner.Controls"
  xmlns:resx="clr-namespace:iTuner.Properties"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  x:Class="iTuner.ExceptionDialog"
  x:ClassModifier="internal"
  Title="" Width="608" Height="408"
  mc:Ignorable="d" d:DesignWidth="248" d:DesignHeight="120"
  ShowInTaskbar="False" ResizeMode="CanResizeWithGrip" AllowsTransparency="True" Topmost="True"
  WindowStyle="None" Visibility="Visible" WindowStartupLocation="CenterScreen">

  <Window.Resources>
    <Style TargetType="TextBlock">
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="FontFamily" Value="Calibri"/>
      <Setter Property="Margin" Value="0,0,5,0"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>
  </Window.Resources>

  <Border
    x:Name="mainBorder" CornerRadius="5" Padding="1" Margin="0,0,8,8"
    Background="{StaticResource iTunesOutline}">
    <Border.Effect>
      <DropShadowEffect BlurRadius="6" ShadowDepth="6" Opacity="0.30"/>
    </Border.Effect>

    <Border
      CornerRadius="5" Padding="0"
      Background="{StaticResource iTunesBackground}">

      <DockPanel Margin="5,5,5,10">

        <local:DetailPanel x:Name="detailPanel" Margin="0,0,0,6" DockPanel.Dock="Top">
          <TextBlock
            x:Name="titleBlock"
            Text="{x:Static resx:Resources.ExceptionDialog_Title}"
            FontWeight="Bold" Background="Transparent" />
        </local:DetailPanel>

        <StackPanel
          Orientation="Horizontal" HorizontalAlignment="Right"
          DockPanel.Dock="Bottom" Margin="0,12,12,0">
          <Button
            Content="{x:Static resx:Resources.ExceptionDialog_CopyButton}" IsDefault="True" Click="DoCopy"
            Height="24" Width="60" HorizontalAlignment="Right"
            Style="{StaticResource iButtonStyle}" Margin="4,0,0,0" />
          <Button
            Content="{x:Static resx:Resources.OKButton}" IsDefault="True" Click="DoOK"
            Height="24" Width="60" HorizontalAlignment="Right"
            Style="{StaticResource iButtonStyle}" Margin="4,0,0,0" />
        </StackPanel>

        <ScrollViewer
          DockPanel.Dock="Top" Margin="4,0,4,0"
          VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Auto">
          <TextBlock
            x:Name="detailBlock"
            Text="{x:Static resx:Resources.ExceptionDialog_DetailsBlock}" VerticalAlignment="Top"
            Margin="0" />
        </ScrollViewer>
      </DockPanel>
    </Border>
  </Border>
</controls:MovableWindow>
